package com.ruoyi;

import cn.hutool.core.lang.Dict;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author zhangqidi
 * @date 2025/8/14
 * @description TODO
 **/
public class Test {
    public static void main(String[] args) {
        System.out.println("hello world");

        String str = "{\"order\":2}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        Dict dict1 = Dict.parse(jsonObject);
        dict1.set("order", 2 + 1);
        System.out.println(JSON.toJSONString(dict1));
    }
}
